enum getServe {
  Massage,
  SPA,
  Daobaojian,
}

const radom = getServe.SPA
console.log(radom)

function heihei(state: getServe) {
  switch (state) {
    case 1:
      console.log('嘿嘿')
      break
    case 2:
      console.log('哈哈')
      break
    default:
      console.log('呜呜')
  }
}

heihei(2)
